package com.hgsoft.pubsv.component.base.dto;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 公共请求参数
 *
 * @author saint
 */
@ApiModel("公共请求参数")
@Data
@Accessors(chain = true)
public class BaseApiReqDto<T> implements Serializable {

	@ApiModelProperty(value = "接入渠道编码")
	private String accessNo;
	@ApiModelProperty(value = "数据格式JSON")
	private String format;
	@ApiModelProperty(value = "请求使用的编码格式utf-8")
	private String charset;
	@ApiModelProperty(value = "加密算法,AES/RSA/RSAWITHAES")
	private String encryptType;// 返回数据格式，除JSON外其余标注为String
	@ApiModelProperty(value = "AES密钥,采用RSAWITHAES加解密方式时不为空")
	private String encryAesKey;// 采用RSAWITHAES加解密方式必传
	@ApiModelProperty(value = "版本号")
	private String version;
	@ApiModelProperty(value = "请求内容,字符串或者JSON")
	private T bizContent;

	private String clientKey;

}
